package qimao.com.edu.service;

import java.util.List;

import qimao.com.edu.entity.CategoryMajor;
import qimao.com.edu.entity.CategoryMinor;

public interface CategoryService {

	/**
	 * 创建大类
	 * @param majorCategory
	 * @return
	 */
	CategoryMajor createMajorCategory(CategoryMajor majorCategory);
	
	/**
	 * 创建小类
	 * @param minorCategory
	 * @return
	 */
//    CategoryMinor createMinorCategory(CategoryMinor minorCategory);

    /**
     * 获取所有大类
     * @return
     */
    List<CategoryMajor> getAllMajorCategories();
    /**
     * 获取所有小类
     * @return
     */
    List<CategoryMinor> getAllMinorCategories();
    
    /**
     * 获取某大类下所有小类
     * @return
     */
    List<CategoryMinor> getMinorCategoriesByMajor(Integer majorId);
}
